<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=div, initial-scale=1.0">
    <title>懂车帝-看车选车买车就上懂车帝</title>
    <link rel="./js.html/02.html" href="">
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        input,
        button {
            border: 0;
            outline: none;
        }

        ul li {
            list-style: none;
        }

        body {

            width: 100%;
            height: 640px;
            background-image: url('./img/780061920402029812.jpg');
            background-size: 100% 100%;
        }

        .box {
            /* padding: 20px; */
            width: 470px;
            height: 600px;
            margin: 100px auto;

        }

        .box1 img {
            margin-bottom: 30px;
        }

        .box1 strong {
            color: #fff;
            font-size: 20px;
        }

        .box2 {
            width: 430px;
            height: 480px;
            background-color: #fff;
            position: relative;
            padding: 20px;
        }

        .box2 input {
            width: 400px;
            border-bottom: 1px solid #ccc;
            padding: 20px 5px;
            margin-left: 20px;
            margin-right: 20px;
            margin-top: 10px;
            margin-bottom: 10px;

        }

        .box2 strong {
            display: block;
            color: #000;

            font-size: 16px;
            margin: 20px;
        }

        .box2 strong span {
            color: burlywood;
            margin-left: 10px;

        }

        .box2 h3 {
            margin-left: 20px;
            margin-top: 20px;
        }

        .btn {
            width: 400px;
            height: 40px;
            background-color: #ffe100;
            margin-top: 10px;
            text-align: center;
            margin-left: 20px;
            margin-bottom: 10px;
        }

        .btn1 {
            position: absolute;
            right: 30px;
            top: 165px;
            cursor: pointer;
            
        }

        .oul {
            float: left;
        }

        .oul li {
            text-align: center;
            float: left;
            width: 120px;
            margin-top: 20px;
            margin-left: 20px;
            height: 60px;
            line-height: 60px;
        }
        .oul li span{
            font-size: 18px;
            font-weight: 500;
        }

        .oul li p {
            font-size: 12PX;
            color: #CCC;
            margin-top: -60px;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="box1">
            <img src="./img/92096042310050358.png" width="440px" height="92px">

            <div class="box2">
                <h3>手机注册</h3>
                <input type="text" placeholder="手机号"><br>
                <input type="text" placeholder="验证码"><br>
                <input type="text" placeholder="请输入四位验证码">
                <button class="btn1"><span>请获取验证码</span> </button>
                <strong>或使用<span>邮箱注册</span></strong>
                <button class="btn">注册</button>


                <ul class="oul">
                    <li><span>第三方登录</span> </li>
                    <li><img src="./img/icon_qq_pc.svg" alt="" width="44px" height="44px">
                        <p class="p1">QQ</p>
                    </li>
                    <li><img src="./img/icon_weixin_pc.svg" alt="" width="44px" height="44px">
                        <p class="p2">微信</p>
                    </li>
                </ul>

            </div>
        </div>

    </div>
    <script>
        var obtn = document.querySelector('.btn')
        var obj = document.querySelector('.btn1')
        var osp = document.getElementsByTagName('span')[0]
        obj.onclick = function () {
            var countdown = 60;
            osp.innerHTML = countdown
            var timer = setInterval(function () {
                osp.innerHTML = countdown-- + 's后重新获取'
                console.log(osp)
                if (countdown < 0) {
                    clearInterval(timer)
                    osp.innerHTML = "请重新获取验证码";
                }
            }, 1000)

        }
        obtn.onclick = function () {
            alert('注册成功')
        }




        function getrandom(min, max) {
            return Math.floor(Math.random() * (max - min + 1) + min)
        }










































        //    this.innerHTML = '<span>'+num+'</span>后重新获取'


        //     setInterval(function () {
        //         for(var i=0;i<num.length;i--){
        //             console.log(num)
        //             }
        //             //    num[i]--;


        //     },1000)
    </script>
</body>

</html>